package actions;

import java.util.Vector;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.swing.text.html.HTMLDocument.Iterator;

import model.StudentDBModel;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import data.StudentData;

public class Chairs_5_toDisc extends Action{
	
	StudentDBModel model = new StudentDBModel();
	
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
	{
		
		StudentDBModel model = new StudentDBModel();		
		Vector<String> discAnalyticsFull;
		Vector<Integer> discAnalyticsNum;
		
		
		discAnalyticsFull = StudentDBModel.discAnalyticsFull();
		discAnalyticsNum = StudentDBModel.discAnalyticsNum();
		
		request.setAttribute("discAnalyticsFull", discAnalyticsFull);
		request.setAttribute("discAnalyticsNum", discAnalyticsNum);
		
	
		
		return mapping.findForward("success");
	}

}
